package com.scalar.forecast.salesPersonSetup.actionCommands;

import com.scalar.forecast.commons.Constants;
import com.scalar.forecast.actionCommands.ActionCommand;

/**
 * Created by Gandhi.
 * Date: Feb 8, 2005
 * Time: 5:40:19 PM
 */
public class SalesPersonSetupActionCommandFactory implements Constants {


    public static ActionCommand getActionCommand( String action )
    {


        if ( ACTION_NEW.equalsIgnoreCase( action ) ) {
            return new SalesPersonSetupNewCommand();
        }

        if ( ACTION_SAVE.equalsIgnoreCase( action ) ) {
            return new SalesPersonSetupSaveCommand();
        }

        if ( ACTION_LOAD_LEVEL.equalsIgnoreCase( action ) ) {
            return new SalesPersonSetupLoadCommand();
        }

        if ( ACTION_LOAD_SALES.equalsIgnoreCase( action ) ) {
            return new SalesPersonSetupLoadSalesCommand();
        }

        return null;
    }

}
